Result

class Result(val scan_record: ScanRecord? = null, val state: ConnectionState? = null, val reason: ConnectionFailureReason? = null, unknownFields: ByteString = ByteString.EMPTY) : Message<Result, Nothing>

This type is returned by the Data Out characteristic using notifications. Scan records are returned when WiFi scanning is enabled. WiFi state is notified whenever connection state changes, or during provisioning.

Constructors

Link copied to clipboard
constructor(scan_record: ScanRecord? = null, state: ConnectionState? = null, reason: ConnectionFailureReason? = null, unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adapter: ProtoAdapter<Result>
Link copied to clipboard

The failure reason is set when the state is CONNECTION_FAILED.

Link copied to clipboard
val scan_record: ScanRecord? = null
Link copied to clipboard
val state: ConnectionState? = null
Link copied to clipboard
open val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(scan_record: ScanRecord? = this.scan_record, state: ConnectionState? = this.state, reason: ConnectionFailureReason? = this.reason, unknownFields: ByteString = this.unknownFields): Result
Link copied to clipboard
fun encode(stream: OutputStream)
fun encode(sink: BufferedSink)
Link copied to clipboard
fun encodeByteString(): ByteString
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard